import { translate as $t } from "../../../language/index"
//自定义好数据格式，去返回数据里获取需要的

//客源类型: customer_buy,customer_rent
export const CustomerSourceType = [
    {
        id: 0,
        jobId: 0,
        tag: 'customer_buy',
        value: null,
        name: $t('text.System.l138'),
        loading: false,
        elementType: 2,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_rent',
        value: null,
        name: $t('text.System.l139'),
        loading: false,
        elementType: 2,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//客别: pri_customer_num,pub_customer_find,pri_customer_find
export const CustomerType = [
    {
        id: 0,
        jobId: 0,
        tag: 'pri_customer_num',
        value: null,
        name: $t('text.System.l140'),
        loading: false,
        elementType: 1,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'pub_customer_find',
        value: null,
        name: $t('text.System.l141'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'pri_customer_find',
        value: null,
        name: $t('text.System.l142'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//查看客源: pri_customer_info,look_pub_customer,look_rob_customer
export const viewCustomerSource = [
    {
        id: 0,
        jobId: 0,
        tag: 'pri_customer_info',
        value: null,
        name: $t('text.System.l143'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'look_pub_customer',
        value: null,
        name: $t('text.System.l144'),
        loading: false,
        elementType: 1,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'look_rob_customer',
        value: null,
        name: $t('text.System.l145'),
        loading: false,
        elementType: 1,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]


//编辑客源: edit_customer_info,edit_customer_grade,edit_customer_other
export const editCustomerSource  = [
    {
        id: 0,
        jobId: 0,
        tag: 'edit_customer_info',
        value: null,
        name: $t('text.System.l146'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'edit_customer_grade',
        value: null,
        name: $t('text.System.l147'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'edit_customer_other',
        value: null,
        name: $t('text.System.l148'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//跟进: follow_insert,follow_top,follow_del
export const followUp  = [
    {
        id: 0,
        jobId: 0,
        tag: 'follow_insert',
        value: null,
        name: $t('text.System.l149'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'follow_top',
        value: null,
        name: $t('text.System.l150'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'follow_del',
        value: null,
        name: $t('text.System.l151'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//变更角色: role_change0,role_change1
export const changeRole  = [
    {
        id: 0,
        jobId: 0,
        tag: 'role_change0',
        value: null,
        name: $t('text.System.l152'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'role_change1',
        value: null,
        name: $t('text.System.l153'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//功能操作: customer_top,customer_top_num,customer_deal_status,customer_transfer,customer_rent_buy,customer_del
export const operationFunctional  = [
    {
        id: 0,
        jobId: 0,
        tag: 'customer_top',
        value: null,
        name: $t('text.System.l154'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_top_num',
        value: null,
        name: $t('text.System.l155'),
        loading: false,
        elementType: 1,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_deal_status',
        value: null,
        name: $t('text.System.l156'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_transfer',
        value: null,
        name: $t('text.System.l157'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_rent_buy',
        value: null,
        name: $t('text.System.l158'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_del',
        value: null,
        name: $t('text.System.l159'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
]

//改变客别: customer_pub_pri,customer_pub_rob,customer_pri_pub,customer_pri_rob
export const changeCustomerSource  = [
    {
        id: 0,
        jobId: 0,
        tag: 'customer_pub_pri',
        value: null,
        name: $t('text.System.l160'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_pub_rob',
        value: null,
        name: $t('text.System.l161'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_pri_pub',
        value: null,
        name: $t('text.System.l162'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'customer_pri_rob',
        value: null,
        name: $t('text.System.l163'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//聊天记录: customer_chat
export const ChatRecords  = [
    {
        id: 0,
        jobId: 0,
        tag: 'customer_chat',
        value: null,
        name: $t('text.System.l164'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//带看记录: customer_lead
export const takeLookRecord  = [
    {
        id: 0,
        jobId: 0,
        tag: 'customer_lead',
        value: null,
        name: $t('text.System.l165'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]

//其他: analysis_find,trends_find,visit_find
export const others  = [
    {
        id: 0,
        jobId: 0,
        tag: 'analysis_find',
        value: null,
        name: $t('text.System.l166'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'trends_find',
        value: null,
        name: $t('text.System.l167'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    },
    {
        id: 0,
        jobId: 0,
        tag: 'visit_find',
        value: null,
        name: $t('text.System.l168'),
        loading: false,
        elementType: 0,//类型，0-select，1-input，2-switch
        type: 2//权限分类(0-二手房,1-新房,2-客源,3-楼盘字典,4-人事管理)
    }
]